using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using Rhino.Commons;
using Rhino.Security.Model;

namespace WebUI.Controllers
{
    [HandleError]
    public class HomeController : SportsStoreController
    {
        public ActionResult Index()
        {
            using (UnitOfWork.Start())
            {
                ICollection<UsersGroup> results = UnitOfWork.CurrentSession.CreateQuery("select groups from UsersGroup groups").List<UsersGroup>();
            }
            
            ViewData["Title"] = "My Sports Store";
            return View();
        }

        public ActionResult About()
        {
            ViewData["Title"] = "About Page";
            return View();
        }

    }
}
